package com.exercise.activemq.replyto;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author admin
 * 2019/12/13-10:34
 **/
@Component
public class ConsumerR {
    @JmsListener(destination = "springboot.replyto.queue")
    public  void  receive(String message){
        System.out.println(this.getClass().getName()+" 收到的报文为:"+message);
    }
}
